home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / lcsrc.arc / CRT_PSET.ASM < prev    next >
Assembly Source File  |  1985-04-04  |  1KB  |  70 lines

  1.  
  2. ;-------------------------------------------------------------------
  3. ;
  4. ; name        crt_pset - use BIOS call to set point
  5. ;
  6. ; synopsis    crt_pset( row, col, color)
  7. ;        int    row,col,color;
  8. ;
  9. ; description    this routine uses the BIOS "set a point call", so it 
  10. ;        can be used in mono or color in any graphics mode.  The
  11. ;        major draw-back to using the BIOS call is that it
  12. ;        is SLOOOOW when compared to routines that set points
  13. ;        in specific graphics modes.
  14. ;
  15. ; notes        legal row, col, and color values depend on the 
  16. ;        particular graphics modes set.
  17. ;
  18. ;------------------------------------------------------------------------
  19.  
  20.  
  21.  
  22.  
  23.     include    dos.mac
  24.  
  25. video    equ    10h        ; video interrupt number
  26.  
  27.  
  28.     IF    LPROG
  29. X    EQU    6        ;OFFSET OF ARGUMENTS
  30.     ELSE
  31. X    EQU    4        ;OFFSET OF ARGUMENTS
  32.     ENDIF
  33.  
  34.     PSEG
  35.  
  36.  
  37.     PUBLIC    crt_pset
  38.  
  39.  
  40.     IF    LPROG
  41. crt_pset    PROC    FAR
  42.     ELSE
  43. crt_pset    PROC    NEAR
  44.     ENDIF
  45.  
  46.  
  47.  
  48. ROW     EQU     [BP+x]
  49. COL     EQU     [BP+x+2]
  50. COLOR   EQU     [BP+x+4]
  51.  
  52.  
  53.         push    BP
  54.         mov     BP,SP
  55.         mov     AH,12
  56.         mov     AL,COLOR
  57.         mov     CX,COL
  58.         mov     DX,ROW
  59.         int     10H
  60.         pop     BP
  61.         ret
  62.  
  63. crt_pset        ENDP
  64.  
  65.  
  66.     endps
  67.     end
  68.  
  69.  
  70.